package com.tanhua.server.controller;

import com.tanhua.model.domain.vo.HuanXinUserVo;
import com.tanhua.server.service.HuanXinService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author lk
 * @date 2022-04-01
 */
@RestController
@RequestMapping("/huanxin")
public class HuanXinController {

    //根据售价好查环信id
    @Autowired
    private HuanXinService huanXinService;
    @GetMapping("/user")
    public ResponseEntity findHuanXinUser(){
        HuanXinUserVo huanXinUserVo =huanXinService.findByHuanXinUser();
        return ResponseEntity.ok(huanXinUserVo);
    }
}
